package com.nf.recruitment.service.impl;

import com.nf.recruitment.dao.DegreeMapper;
import com.nf.recruitment.entity.Degree;
import com.nf.recruitment.entity.Department;
import com.nf.recruitment.service.DegreeService;
import com.nf.recruitment.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DegreeServiceImpl implements DegreeService {
    @Autowired
    private DegreeMapper mapper;

    @Override
    public List<Degree> listDegree() {
        return mapper.listDegree();
    }

    @Override
    public void saveDegree(Degree degree) {
        mapper.saveDegree(degree);
    }
}
